package com.tboss.template.sample.dwr.treeviewService;

import java.util.HashMap;

import com.tboss.template.sample.dwr.treeviewDao.TreeviewDao;


public class TreeviewHtmlManualService implements TreeviewService {

	@Override
	public StringBuffer build(HashMap<String, String> opts) {
		StringBuffer rtnValue = new StringBuffer();
		rtnValue.append("<ul id='treelist' class='treeview-black'>");
		rtnValue.append("	<li><span>Item 1</span></li>");
		rtnValue.append("	<li><span>Item 2</span>");
		rtnValue.append("		<ul>");
		rtnValue.append("			<li><span>Item 2.1</span>");
		rtnValue.append("				<ul>");
		rtnValue.append("					<li><span>Item 2.1.1</span><span class='noneSpan'>/treeview/link1</span></li>");
		rtnValue.append("					<li><span>Item 2.1.2</span><span class='noneSpan'>/treeview/link2</span></li>");
		rtnValue.append("				</ul>");
		rtnValue.append("			</li>");
		rtnValue.append("			<li>Item 2.2</li>");
		rtnValue.append("			<li class='closed'><span>Item 2.3 (closed at start)</span>");
		rtnValue.append("				<ul>");
		rtnValue.append("					<li><span>Item 2.3.1</span><span class='noneSpan'>/treeview/link</span></li>");
		rtnValue.append("					<li><span>Item 2.3.2</span></li>");
		rtnValue.append("				</ul>");
		rtnValue.append("			</li>");
		rtnValue.append("		</ul>");
		rtnValue.append("	</li>");
		rtnValue.append("</ul>");
		
		return rtnValue;
	}

	@Override
	public StringBuffer build(HashMap<String, String> opts,
			TreeviewDao treeviewDao) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
